#coding:utf-8
__author__="sersoong"

from ctypes import *

kuser = windll.user32

wm_syscommand = 0x0112
sc_monitorpower = 0xf170
HWND_BROADCAST = kuser.FindWindowExA(None,None,None,None)
kuser.SendMessageA(HWND_BROADCAST,wm_syscommand,sc_monitorpower,2)